<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %>

<html>
<head>
    <title>登录页</title>
    <%--echart线图、柱状图、饼图等各种图型库 cdn--%>
    <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts/dist/echarts.min.js"></script>
    <%--jquery cdn--%>
    <script type="text/javascript" src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.1/jquery.js"></script>
</head>
<body>
listlistlistlist

绑定成功${nickName}
 <img src="${avatarUrl}">
<a href="https://gitee.com/oauth/authorize?client_id=d8cedc2a1b71137dfa8e8b9e077aa90376efc80fd98efda972b7829bc5e298dd&redirect_uri=http://localhost:8080/callbackCode.do&response_type=code
">gitee绑定</a>




<form>
    楼号<input name="apartmentName"><br>
    宿舍<input name="roomName"><br>
    学生<input name="studentName"><br>
    <input type="submit" value="查询">
    <a href="/addPage.do">入住</a>

    <table>
        <tr>
            <td>id</td>
            <td>宿舍</td>
            <td>宿舍图片</td>
            <td>楼号</td>
            <td>学生</td>
            <td>入住时间</td>a
        </tr>

        <c:forEach items="${pageInfo.list}" var="l">
            <tr>
                <td>${l.id}</td>
                <td>${l.roomName}</td>
                <td><img src="${l.roomPic}" style="height: 50px;width: 50px"></td>
                <td>${l.apartmentName}</td>
                <td>${l.studentName}</td>
                <td>${l.createTime}</td>
            </tr>

        </c:forEach>
        <tr>
            <td><button name="pageNum" value="1">首页</button> </td>
            <td><button name="pageNum" value="${pageInfo.prePage}">上页</button> </td>
            <td><button name="pageNum" value="${pageInfo.nextPage}">下页</button> </td>
            <td><button name="pageNum" value="${pageInfo.pages}">尾页</button> </td>
        </tr>
    </table>

</form>

</body>
</html>